package cn.edu.seu.ssny.dao;

import cn.edu.seu.ssny.dao.support.IBaseDao;
import cn.edu.seu.ssny.entity.EquipmentType;
import cn.edu.seu.ssny.entity.EquipmentTypeInProject;
import cn.edu.seu.ssny.entity.Project;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface IEquipmentTypeInProjectDao extends IBaseDao<EquipmentTypeInProject, Integer> {
    Optional<EquipmentTypeInProject> findByProjectAndTypeName(Project project, EquipmentType equipmentType);

    List<EquipmentTypeInProject> findByProjectOrderByTypeNameName(Project project);
}
